package com.hl.card.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 收货地址表
 * </p>
 *
 * @author 周永榜
 * @since 2018-06-04
 */
@TableName("collect_address ")
public class CollectAddress extends Model<CollectAddress>  {
	
	private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	  /**
     * 用户id
     */
	@TableField("user_id")
	private String userId;
	
	  /**
     * 收货地址
     */
	@TableField("address")
	private String address;
	  /**
     * 收货地址的省市区
     */
	@TableField("address_provinces")
	private String addressProvinces;
	  /**
     * 是否为默认收货地址"0"为默认"1"为非默认
     */
	@TableField("whether_address")
	private Integer whetherAddress;
	 /**
     * 收货名字
     */
	@TableField("collect_name")
	private String CollectName;
	 /**
     * 收货手机号码
     */
	@TableField("collect_phone")
	private String CollectPhone;
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getAddressProvinces() {
		return addressProvinces;
	}

	public void setAddressProvinces(String addressProvinces) {
		this.addressProvinces = addressProvinces;
	}

	public Integer getWhetherAddress() {
		return whetherAddress;
	}

	public void setWhetherAddress(Integer whetherAddress) {
		this.whetherAddress = whetherAddress;
	}

	public String getCollectName() {
		return CollectName;
	}

	public void setCollectName(String collectName) {
		CollectName = collectName;
	}

	public String getCollectPhone() {
		return CollectPhone;
	}

	public void setCollectPhone(String collectPhone) {
		CollectPhone = collectPhone;
	}
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "CollectAddress [id=" + id + ", userId=" + userId + ", address=" + address + ", addressProvinces="
				+ addressProvinces + ", whetherAddress=" + whetherAddress + ", CollectName=" + CollectName
				+ ", CollectPhone=" + CollectPhone + "]";
	}


	}


